<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付</title>
    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1">
</head>
<style>
    *{
        padding:0;
        margin:0;
    }
    body{
        background:#f9f9f9;
        font-size: 14px;
        /*    background: url(image/p_bg.png);
            background-size: 100%;*/
    }
    .cont{
        background: #fff;
        margin-bottom: 10px;
        /*	background: url(image/p_bg.png);
            background-size: 100%;*/
    }
    .title{
        text-align: center;
        padding:10px 0;
        margin-bottom: 30px
    }
    .list a{
        background: #1E9FFF;
        color:#fff;
        border:0;
        padding:3px 10px;
        border-radius: 4px;
        text-decoration: none;
    }
    .logo{
        margin:0 auto;
        text-align: center;
    }
    .logo img{
        width: 60%;

    }
    .list{
        display: flex;
        margin-bottom: 5px;
        justify-content: space-between;
        border-bottom: 1px solid #ccc;
        padding:10px;
        width: 90%
        margin:0 auto;
        color:#666;
    }
    .list:last-child{
        border-bottom: 0;
    }
    .list_tit{
        color:#666;
        /*width: 90px;*/
        /*text-align: right*/
    }
    .hui{
        background:#999;
    }
</style>
<body>
<div class="cont">
    <!--<div class="logo"> <img src="/static_gs_hn/ace1.4/assets/images/p_logo.png" alt=""> </div>-->
    <div class="list"><div style="display:flex;"><div class="list_tit">订单编号:</div></div><div>{$res.tong_storage}</div></div>
    <div class="list"><div style="display:flex;"><div class="list_tit"><?php if($res['chezhu'] == 2){ echo '车主姓名'; }else{ echo '被服务人'; }?>:</div></div><div>{$res.learned_name}</div></div>
    <div class="list"><div style="display:flex;"><div class="list_tit">车牌号:</div></div><div>{$res.car_num}</div></div>
    <div class="list"><div style="display:flex;"><div class="list_tit">车架号:</div></div><div>{$res.car_vin}</div></div>
</div>
<div class="cont">
    <!-- <div class="title">签字</div> -->
    <?php if($res['qianzi_status'] >=1 ){?>








    <!--************************************************************************************-->
    <?php if($sign){?>
    <div class="list">
        <div style="display:flex;">
            <div class="list_tit">签字状态:</div>已签字
        </div>
        <div style="color:#00bb6f; display:flex;align-items:center"><img src="/assets/img/dui.png" style="width:12px;margin-right:5px" mode="widthFix" alt="" /> 已完成
        </div>
    </div>
    <?php }else{?>
    <div class="list">
        <div style="display:flex;">
            <div class="list_tit">签字状态:</div>待签字
        </div>
        <a href="/index/index/dian?dian={$res.id}&type={$data.type}&time={$data.time}&id={$data.id}&channel_id={$data.channel_id}" >
            去签字
        </a>
    </div>
    <?php }?>
    <?php if($res['jiaofei'] <>2){?>
    <?php if($sign){?>
    <div class="list"><div style="display:flex;">
        <?php if($res['qianzi_status'] ==1 || $res['qianzi_status'] ==2 || $res['qianzi_status'] ==4){?>
        <div class="list_tit">支付状态:</div>
        待支付
    </div>
        <a href="/index/index/zhifu?id={$data.id}&type={$data.type}&time={$data.time}&channel_id={$data.channel_id}">
            去支付
        </a>
        <?php }?>
    </div>
    <?php }?>
    <?php }?>
    <!--************************************************************************************-->

    <?php if($res['jiaofei'] ==2){?>
    <div class="list"><div style="display:flex;">
        <div class="list_tit">支付状态:</div>
        已支付
    </div>
        <div style="color:#00bb6f; display:flex;align-items:center"><img src="/assets/img/dui.png" style="width:12px;margin-right:5px" mode="widthFix" alt="" /> 已完成</div>
    </div>

    <div class="list" style="    align-items: center;">
        <div style="display:flex;">
            <div class="list_tit">服务单</div>
        </div>
        <div>
            <a href="/index/index/dian?dian={$res.id}" style="display:block;margin-bottom:10px">
                服务单查看
            </a>
            <?php if($res['pdf']){?>
            <a href="/index/index/xiazai?dian={$res.id}" >
                服务单导出
            </a>
            <?php }?>
        </div>

    </div>



    <?php }?>
    <?php }?>
</div>
</body>
</html>